﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FishServe.Core.Manifest2
{
	public enum ModuleType
	{
		Application,
		Shell,
		Module,
		Content
	}

	public sealed class Module2 : IFileDetail
	{
		public ModuleType ModuleType { get; set; }
		public Version Version { get; set; }
		public string Name { get; set; }
		public List<Module2> DependantModules { get; set; }
		public List<FileDetail> ContentFiles { get; set; }


		private string m_BaseDirectory = String.Empty;

		public Module2(string baseDirectory)
		{
			m_BaseDirectory = baseDirectory;
		}



		public string FileHash
		{
			get;
			set;
		}

		public string FilePath
		{
			get
			{
				return Path.Combine(m_BaseDirectory, String.Format("{0}.dll", Name));
			}
			set
			{
				throw new NotImplementedException();
			}
		}
	}
}
